OpenText Cordys 10.6 documentation : onchange Event (Dropdown, Listbox)

onchange Event (Dropdown, Listbox)


This event is fired when the contents of the object selected have changed.

Syntax

Inline HTML

<div cordysType="wcp.library.ui.Dropdown"  id=dropdownID onchange="handler()"...>
...
</div>

OR

<div cordysType="wcp.library.ui.ListBox" id=dropdownID onchange="handler()"...>
...
</div>

Event property

controlID.onchange = handler


Event Information

To invoke

Change the item displayed in the dropdown or listbox.

Default Action

Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object model do not receive parameters directly, a handler can query an event object for data.

option

Read-only. Object that denotes the item that is currently selected in the dropdown or listbox.

selectedIndex

Read-only. Integer that denotes the index of item selected.

text

Read-only. String that contains the text displayed in the selected item.

value

Read-only. String that contains the value of the selected item.


See Also


Dropdown, Listbox